home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15159 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  804 b 

  1. Path: news.alaska.edu!camelot!fxfjn
  2. From: fxfjn@camelot.acf-lab.alaska.edu (Frankie J. Nichols)
  3. Newsgroups: comp.unix.programmer,comp.lang.c
  4. Subject: Re: Geting program path
  5. Followup-To: comp.unix.programmer,comp.lang.c
  6. Date: 16 Apr 1996 17:14:27 GMT
  7. Organization: University of Alaska Computer Network
  8. Message-ID: <4l0khj$va9@news.alaska.edu>
  9. References: <3mtt4d$6ml@alfa.ist.utl.pt>
  10. NNTP-Posting-Host: camelot.acf-lab.alaska.edu
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. try 'which' then the command (executable) you need the path of
  14.  
  15.    -frankie
  16.  
  17.  
  18. Highlander C H B M (l39801@ci.ist.utl.pt) wrote:
  19.  
  20. : I need to find the path of the executable so I can stat() and touch it.
  21. : Anybody knows how to do it ? ( geting the $PWD or getcwd() doesn't help 
  22. : cause it can be anywhere along the $PATH )
  23.  
  24. :                 Tkx!
  25.  
  26.  
  27.